<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">

    <title>搜索玩家</title>
    <link href="/static/admin/css/public/style.css" rel="stylesheet">
    <link href="/static/admin/css/public/style-responsive.css" rel="stylesheet">
    <link href="/static/admin/css/public/loading.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/admin/css/public/plugs/bootstrap-datetimepicker.min.css" />
    <script src="/static/admin/js/public/html5shiv.js"></script>
    <script src="/static/admin/js/public/plugs/respond.min.js"></script>
    <style type="text/css">
        #searchModal table td{
            height: 35px;
        }
        #searchModal table input, #searchModal table select{
            width: 125px;
        }
        .searchTitleTd{
            text-align: right;
        }
        .sortTh{
            cursor: pointer;
        }
        .order{
            color: #666;
        }
    </style>
</head>

<body class="sticky-header" style="font-family: '微软雅黑';">
<div class="fixedDiv">
    <!-- 页面位置 -->
    <div class="page-heading">
        <ul class="breadcrumb" style="margin-top: 20px;">
            <span style="font-weight: bold;">位置：</span>
            <li>玩家管理</li>
            <li class="active"> 搜索玩家 </li>
        </ul>
        <hr />
    </div>
    <div class="form-inline form-group">
        <form style="display: inline;">
            游戏平台:
            <select class="select" id="gamePlatform" onchange="loadDatas('search')">
                <option value="-1" selected="selected">全部</option>
            </select>
            控制状态:
            <select class="select" id="state" onchange="loadDatas('search')">
                <option value="-1" selected="selected">全部</option>
                <option value="0">未被控制</option>
                <option value="1">被控制</option>
            </select>
            作弊类型:
            <select class="select" id="zbType" onchange="loadDatas('search')">
                <option value="-1" selected="selected">全部</option>
                <option value="0">自动</option>
                <option value="1">手动</option>
            </select>
            <input type="reset" style="display: none;" />
        </form>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <button class="btn btn-sm btn-success" onclick="loadDatas('search')">开始查询</button>
        <button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#searchModal">搜索玩家</button>
        <button class="btn btn-sm btn-success" onclick="searchAll('search')">显示所有</button>
        <div class="dataTable_info" style="font-weight: inherit;">
            <div class="dataTable_page">
                <span>共<span id="count" style="margin: 0;">0</span>条记录</span>
                <span>每页40条</span>
                <span>页码:<span style="margin: 0;" id="nowPage">1</span>/<span id="allPage">1</span><input type="hidden" id="page" value="1" /></span>
                <span id="shang"><a href="javascript:void(0);" onclick="previousPage()">上一页</a></span>
                <span id="xia"><a href="javascript:void(0);" onclick="nextPage()">下一页</a></span>
                转到<input class="form-inline" type="text" id="pageIpu"
                         style="height: 25px; width: 50px; margin-left: 10px;"
                         onKeyUp="this.value=this.value.replace(/\D/g,'')"
                         onafterpaste="this.value=this.value.replace(/\D/g,'')" />
                页
                <button type="button" class="btn btn-sm btn-primary" id="go" onclick="goPage()">go</button>
            </div>
        </div>
    </div>
</div>

<!-- 页面位置 -->
<div class="wrapper">
    <div class="row row-margin">
        <div class="col-sm-12">
            <section class="panel panel-margin">
                <div class="panel-body">
                    <button class="btn btn-xs btn-danger" onclick="batchLockUser()">批量锁定</button>
                    <button class="btn btn-xs btn-success" onclick="batchUnlockUser()" style="margin-left: 10px;">批量解锁</button>
                    <table class="table table-hover table-striped table-condensed general-table">
                        <thead>
                        <tr>
                            <th width="20px">
                                <input type="checkbox" onclick="checkAll(this)"/>
                            </th>
                            <th>房间名</th>
                            <th class="sortTh" id="GameID">推广号 <span class="fa fa-sort order"></span></th>
                            <th>昵称</th>
                            <th class="sortTh" id="score">资产 <span class="fa fa-sort order"></span></th>
                            <th class="sortTh" id="prizes">奖券 <span class="fa fa-sort order"></span></th>
                            <th class="sortTh" id="cz">充值 <span class="fa fa-sort order"></span></th>
                            <th class="sortTh" id="ZengSongCha">转账 <span class="fa fa-sort order"></span></th>
                            <th class="sortTh" id="RegisterDate">注册时间 <span class="fa fa-sort order"></span></th>
                            <th class="sortTh" id="LastLoginTime">最后登陆时间 <span class="fa fa-sort order"></span></th>
                            <th class="sortTh" id="TodayScore">当日输赢 <span class="fa fa-sort order"></span></th>
                            <th class="sortTh" id="RealScore">总输赢 <span class="fa fa-sort order"></span></th>
                            <th>作弊率</th>
                            <th>作弊限额</th>
                            <th>作弊状态</th>
                            <th>平台</th>
                            <th>游戏平台</th>
                            <th class="sortTh" id="UserKind">用户类型 <span class="fa fa-sort order"></span></th>
                            <input type="hidden" id="sorts" />
                        </tr>
                        </thead>
                        <tbody id="databody">
                        <tr><td colspan="18" align="center">数据正在加载中，请稍后~</td></tr>
                        </tbody>
                    </table>
                </div>
            </section>
        </div>
    </div>
</div>

<div class="sk-circle" id="load" style="display: none;">
    <div class="sk-circle1 sk-child"></div>
    <div class="sk-circle2 sk-child"></div>
    <div class="sk-circle3 sk-child"></div>
    <div class="sk-circle4 sk-child"></div>
    <div class="sk-circle5 sk-child"></div>
    <div class="sk-circle6 sk-child"></div>
    <div class="sk-circle7 sk-child"></div>
    <div class="sk-circle8 sk-child"></div>
    <div class="sk-circle9 sk-child"></div>
    <div class="sk-circle10 sk-child"></div>
    <div class="sk-circle11 sk-child"></div>
    <div class="sk-circle12 sk-child"></div>
</div>
<!-- 搜索玩家弹框 -->
<div class="modal fade" id="searchModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div>
                    <b>搜索玩家</b>
                </div>
                <div style="height: 1px; background-color: #ccc;"></div>
                <div>
                    <form class="form-inline">
                        <table>
                            <tr>
                                <td class="searchTitleTd" style="width: 220px;">用户信息：</td>
                                <td>
                                    <select id="uType">
                                        <option value="1" selected="selected">推广号</option>
                                        <option value="2">UserID</option>
                                        <option value="3">昵称</option>
                                    </select>
                                    <input id="userid" type="text" class="form-control input-sm" style="margin-left: 10px;" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">注册时间：</td>
                                <td>
                                    <input type='text' id="beginReg" class="form-control input-sm" readonly="readonly" />
                                    -
                                    <input type='text' id="endReg" class="form-control input-sm" readonly="readonly" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">最后登录时间：</td>
                                <td>
                                    <input type='text' id="beginLog" class="form-control input-sm" readonly="readonly" />
                                    -
                                    <input type='text' id="endLog" class="form-control input-sm" readonly="readonly" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">用户金币：</td>
                                <td>
                                    <input type="text" id="minScore" class="form-control input-sm" />
                                    -
                                    <input type="text" id="maxScore" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">充值金额：</td>
                                <td>
                                    <input type="text" id="minCzScore" class="form-control input-sm" />
                                    -
                                    <input type="text" id="maxCzScore" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">奖券：</td>
                                <td>
                                    <input type="text" id="minPrize" class="form-control input-sm" />
                                    -
                                    <input type="text" id="maxPrize" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">总输赢：</td>
                                <td>
                                    <input type="text" id="minZsy" class="form-control input-sm" />
                                    -
                                    <input type="text" id="maxZsy" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">当日输赢：</td>
                                <td>
                                    <input type="text" id="minDrsy" class="form-control input-sm" />
                                    -
                                    <input type="text" id="maxDrsy" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">金币赠送差(接收-赠送)：</td>
                                <td>
                                    <input type="text" id="minZengSongCha" class="form-control input-sm" />
                                    -
                                    <input type="text" id="maxZengSongCha" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">密保手机：</td>
                                <td>
                                    <input type="text" id="phone" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">登录IP：</td>
                                <td>
                                    <input type="text" id="loginIp" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">注册IP：</td>
                                <td>
                                    <input type="text" id="regIp" class="form-control input-sm" />
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">账号状态：</td>
                                <td>
                                    <select id="userState">
                                        <option value="" selected="selected">全部</option>
                                        <option value="1">锁定</option>
                                        <option value="0">未锁定</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">用户类型：</td>
                                <td>
                                    <select id="usertype">
                                        <option value="" selected="selected">全部</option>
                                        <option value="0">普通用户</option>
                                        <option value="1">内部用户</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td class="searchTitleTd">游戏平台：</td>
                                <td>
                                    <select id="platform">
                                        <option value="" selected="selected">全部</option>
                                        <option value="1">PC</option>
                                        <option value="2">IOS</option>
                                        <option value="3">Android</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                        <input type="reset" id="modalReset" style="display: none;" />
                    </form>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary btn-sm" onclick="$('#modalReset').click();">清空条件</button>
                <button type="button" class="btn btn-success btn-sm" onclick="startSearch()">开始搜索</button>
                <button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<!-- 提示框 -->
<div class="modal fade" id="tishi_window" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header blue" style="font-size: 16px; font-weight: bold;"> 提示 </div>
            <div class="modal-body" style="text-align: center;">
                <h5 id="tishi"></h5>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-sm btn-success" data-dismiss="modal">确&nbsp;&nbsp;定</button>
            </div>
        </div>
    </div>
</div>

<!-- 批量锁定用户 确认 -->
<div class="modal fade" id="batchLockUserWindow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header blue" style="font-size: 16px; font-weight: bold;"> 确认 </div>
            <div class="modal-body" style="text-align: center;">
                <h5>您确认要锁定选中的玩家吗？</h5>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-sm btn-success" onclick="sureLockGameIds()">确&nbsp;&nbsp;定</button>
                <button type="button" class="btn btn-sm btn-danger" data-dismiss="modal">取&nbsp;&nbsp;消</button>
            </div>
        </div>
    </div>
</div>

<!-- 批量锁定用户 添加锁定备注 -->
<div class="modal fade" id="addLockRemarkWindow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header blue" style="font-size: 16px; font-weight: bold;">您已确认要锁定，请填写备注：</div>
            <div class="modal-body">
                <!-- 批量锁定的用户 -->
                <input type="hidden" id="gameIdStr" />
                <table style="margin: 0 auto;">
                    <tr>
                        <td>备注：</td>
                        <td><textarea class="form-control" id="remark" cols="60" rows="2" style="resize: none;" placeholder="请输入备注…"></textarea></td>
                        <td style="width: 30px; padding-left: 10px;">
                            <span class="fa fa-times" id="lockError" style="color: red; display: none;"></span>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-sm btn-success" onclick="subLockGameIds()">确&nbsp;&nbsp;定</button>
                <button type="button" class="btn btn-sm btn-danger" onclick="cannelLockGameIds()">取&nbsp;&nbsp;消</button>
            </div>
        </div>
    </div>
</div>

<!-- 批量解锁用户 -->
<div class="modal fade" id="batchUnlockUserWindow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header blue" style="font-size: 16px; font-weight: bold;">批量解锁用户</div>
            <div class="modal-body">
                <!-- 批量锁定的用户 -->
                <input type="hidden" id="unlockGameIdStr" />
                <table style="margin: 0 auto;">
                    <tr>
                        <td>备注：</td>
                        <td><textarea class="form-control" id="unlockRemark" cols="60" rows="2" style="resize: none;" placeholder="请输入备注…"></textarea></td>
                        <td style="width: 30px; padding-left: 10px;">
                            <span class="fa fa-times" id="unlockError" style="color: red; display: none;"></span>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-sm btn-success" onclick="subBatchUnlockUsers()">确&nbsp;&nbsp;定</button>
                <button type="button" class="btn btn-sm btn-danger" onclick="cannelUnlockGameIds()">取&nbsp;&nbsp;消</button>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/static/admin/js/public/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/static/admin/js/public/plugs/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/admin/js/public/plugs/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="/static/admin/js/public/plugs/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="/static/admin/js/public.js"></script>
<script type="text/javascript" src="/static/admin/js/player/searchPlayerList.js"></script>
</html>
